package org.vincen.helloworld.slf4jwithlogback;

import org.slf4j.LoggerFactory;

import ch.qos.logback.classic.Logger;

public class HelloWorld2 extends InnerHelloWorld{

	public void method2(){
		this.logger.debug("this is a debug level message");
		this.logger.warn("this is a warn level message");
	}
	
	public static void main(String[] args) {
		HelloWorld2 hw2 = new HelloWorld2();
		hw2.method();
		hw2.method2();
	}
}

class InnerHelloWorld{
	final Logger logger = (Logger) LoggerFactory.getLogger("helloworld.slf4jwithlogback.Foo");
	public InnerHelloWorld(){
	}
	public void method(){
		logger.debug("this is a debug level message");
		logger.warn("this is a warn level message");
		org.slf4j.Logger l1 = LoggerFactory.getLogger("abc");
		org.slf4j.Logger l2 = LoggerFactory.getLogger("abc");
		System.out.println(l1 == l2);
	}
}
